import {Outlet,NavLink,useLocation} from  'react-router-dom'
function AdminView() {
  const location = useLocation();
  console.log(location,"admin");
  return ( <div>
    
    <h3> admin页面</h3>
   <NavLink to=''>概览</NavLink> | 
   <NavLink to='orderlist'>订单</NavLink>
   <Outlet></Outlet>
    </div> );
}
export default AdminView;